<?php
	$tid1 = select(' WHERE tname="新品上新"')[0]['tid'];
	
	$_GET['tblname'] = 'shop_goods';
	$_GET['pk'] = 'gid';
?>
<link rel="stylesheet" type="text/css" href="./public/css/homePage/content.css">
<div id="backImg"></div>
<div id="content">
	<div class="day">
		<div class="cap">新品上新</div>
		<?php
			$goodsInfo = select(" WHERE tid=$tid1 ");
			if($goodsInfo){
				foreach($goodsInfo as $k=>$v){
					if($v['status']==0) continue;
					echo "<a href='./index.php?c=goods&a=detail&gid=$v[gid]'><img src='./admin/public/images/goods/$v[gpic]' />
							<div class='info'>
								<p class='uname'>$v[gname]</p>
								<p class='price'>￥$v[price]</p>
							</div>
							<div class='check'>
								<p>浏览量 <b>$v[vcnt]</b></p>
							</div>
					      </a>";
				}
			}
		?>
	</div>
	
	
	
</div>